/*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.

Copyright (c) 2023-present Kaleidos INC
*/

/*
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.

Copyright (c) 2023-present Kaleidos INC
*/

@import url("tools/typography.css");
@import url("tools/responsive.css");

:host {
  block-size: 100%;
  display: flex;
  flex-direction: column;

  @media (--lt-medium) {
    background: none;
  }

  @media (--gt-xlarge) {
    background-size: 500px, 500px;
  }

  &.verify-email {
    background: none;
  }

  & > .auth {
    flex: 1;
  }

  & > .auth-footer {
    flex: 0;
  }
}

:host-context(tg-auth-feature-login) {
  & .auth-title {
    margin-block-end: var(--spacing-24);
  }
}

:host-context(tg-sign-up) {
  & .auth-subtitle {
    margin-block-end: var(--spacing-16);
  }
}

.auth {
  display: grid;
  place-items: center;
}

.auth-wrapper {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-16);
  inline-size: 384px;
  justify-content: center;
  padding: var(--spacing-16);
  padding-block-end: var(--spacing-32);
  z-index: var(--first-layer);
}

.taiga-logo {
  aspect-ratio: 1/1;
  inline-size: var(--spacing-56);
}

.auth-title,
.auth-subtitle {
  margin: 0;
  text-align: center;
}

.auth-title {
  @mixin font-heading-3;
}

.auth-subtitle {
  @mixin font-paragraph;
}

.auth-footer {
  @mixin font-paragraph;

  align-items: center;
  display: flex;
  flex-direction: column;
  padding-block: var(--spacing-16);
  z-index: var(--first-layer);
}

.login-link {
  color: var(--color-gray80);
  margin: 0;
  margin-block-end: var(--spacing-4);

  &::ng-deep a {
    font-weight: var(--font-weight-medium);
    text-decoration: underline;
  }
}

.sign-up-link {
  color: var(--color-gray80);
  margin: 0;

  &::ng-deep a {
    font-weight: var(--font-weight-medium);
  }
}

.verify {
  align-items: center;
  background-image: url("/assets/images/signup/verify-email_bg-right.svg"),
    linear-gradient(
      90deg,
      var(--color-white) 0%,
      var(--color-white) 49%,
      var(--color-gray20) 50%
    );
  background-position: calc(50% + 300px) 50%;
  background-repeat: no-repeat, no-repeat;
  background-size: auto calc(100vh - var(--banner-height));
  block-size: calc(100vh - var(--banner-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-inline-size: 100%;
}

.owl {
  margin-block-end: var(--spacing-48);
  max-inline-size: 180px;
}

:host(.waves) {
  background-image: url("/assets/images/signup/signup-bg-left.svg"),
    url("/assets/images/signup/signup-bg-right.svg");
  background-position: bottom left, bottom right;
  background-repeat: no-repeat, no-repeat;
  background-size: 33vw, 33vw;
}

.verify-container {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-inline-size: 400px;
  padding-block-end: 25vh;
}

.verify-title {
  @mixin font-heading-3;

  color: var(--color-gray100);
  margin-block-end: var(--spacing-24);
  padding-block: 0;
  padding-inline: var(--spacing-16);
  text-align: center;
}

.verify-text {
  @mixin font-paragraph;

  color: var(--color-gray80);
  display: flex;
  gap: var(--spacing-8);
  margin-block-end: var(--spacing-24);

  &.email {
    color: var(--color-gray90);
    font-weight: var(--font-weight-medium);
  }
}

.verify-footer {
  align-items: center;
  color: var(--color-gray80);
  display: flex;
  gap: var(--spacing-8);
  inset-block-end: 0;
  padding-block-end: var(--spacing-20);
  position: absolute;

  & .verify-footer-sign-up {
    font-weight: var(--font-weight-medium);
    text-decoration: underline;
  }
}
